<template>
  <div>
    <script id="editor" type="text/plain" style="height: 500px;"></script>
  </div>
</template>

<script>
const UE = require('UE');// eslint-disable-line

export default {
  name: 'editorView',
  data: () => (
    {
      editor: null
    }
  ),
  methods: {
    geteditor () {
      console.log(this.editor.getContent())
    }
  },
  mounted () {
    this.editor = UE.getEditor('editor')
  },
  destroyed () {
    this.editor.destroy()
  }
}
</script>

<style>

</style>
